/**
 * Created by Administrator on 2016/9/6.
 */
define(['jquery'],function(){
    $(function(){
        var oCity=$("#famousCity .clear_float a");
        var oZone=$('#famousCity ul');
        var oLogo=$('#famousCity i');
        oLogo.each(function(i){
            $(this).css({"left":20+i*75});
            if(i==oLogo.length/2)
            {
                $(this).css({"left":20+(i-oLogo.length/2)*75});
            }
        });
        oCity.each(function(i){
            $(this).click(function(){
                show(i)
            })
        });
        var oDivNum=$('#number .number_list');
        var oLiNum=$('#numberList li');
        oLiNum.each(function(i){
            $(this).mouseenter(function(){
                startShow(i)
            })
        });
        function startShow(tmp)
        {
            //alert(oDivNum.length);
            oDivNum.each(function(i){
                if(tmp==i)
                {
                    $(this).css({"display":"block"});
                }else
                {
                    $(this).css({"display":"none"});
                }
            });
            oLiNum.each(function(i){
                if(tmp==i)
                {
                    $(this).addClass("border_change");
                }else
                {
                    $(this).removeClass();
                }
            });
        }
        function show(tmp)
        {
            oZone.each(function(i){
                if(tmp==i)
                {
                    $(this).css({"display":"block"});
                }else
                {
                    $(this).css({"display":"none"});
                }
            });
        }
    });
});
